package com.fcscs.ecms.gwt.client;

import java.util.List;

import com.fcscs.cservice.domain.ThemeItem;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ECMSThemeServiceAsync {

	void createThemeItem(ThemeItem ti, AsyncCallback<ThemeItem> callback);

	void deleteThemeItem(ThemeItem ti, AsyncCallback<Boolean> callback);

	void getThemeItem(long id, AsyncCallback<ThemeItem> callback);

	void getThemeItemList(long orgId, long propId, long versionId,
			AsyncCallback<List<ThemeItem>> callback);

	void getThemeItemList(long orgId, long propId, boolean isCurrent,
			AsyncCallback<List<ThemeItem>> callback);

	void isThemeItemTaken(long orgId, long propId, String name, Long id,
			long versionId, AsyncCallback<Boolean> callback);

	void permDeleteThemeItem(ThemeItem ti, AsyncCallback<Boolean> callback);

	void saveThemeItem(ThemeItem ti, AsyncCallback<ThemeItem> callback);

	void saveThemeItemList(List<ThemeItem> tiList,
			AsyncCallback<List<ThemeItem>> callback);

	void getThemeItemViewList(long orgId,long propId,
			AsyncCallback<List<com.fcscs.cservice.domain.model.ThemeItem>> callback);

}
